package lp.xian.materials.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.domain.SupplierGoods;
import lombok.Data;

import lp.xian.materials.domain.RequisitionTable;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
@Data
public class ReqVo extends BaseEntity {

    private List<SupplierGoods> listOrder;

    /** 供应商 */
    @Excel(name = "供应商")
    private Integer supplierId;

    /** 单据号 */
    @Excel(name = "单据号")
    private Integer requisitionPo;

    /** 请购计划名称 */
    @Excel(name = "请购计划名称")
    private String requisitionName;

    /** 请购人员 */
    @Excel(name = "请购人员")
    private String requisitionPerson;
    /** 商品名称 */
    @Excel(name = "商品名称")
    private String supplierTableName;

    /** 日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date requisitionDate;

    /** 存货编码 */
    @Excel(name = "存货编码")
    private Integer requisitionOrderNo;

    /** 税率 */
    @Excel(name = "税率")
    private BigDecimal requisitionTableTax;


    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)

                .append("requisitionTableTax", getRequisitionTableTax())
                .append("supplierTableName", getSupplierTableName())
                .append("requisitionOrderNo", getRequisitionOrderNo())
                .append("supplierId", getSupplierId())
                .append("requisitionPo", getRequisitionPo())
                .append("requisitionName", getRequisitionName())
                .append("requisitionPerson", getRequisitionPerson())
                .append("requisitionDate", getRequisitionDate())
                .append("listOrder", getListOrder())


                .toString();
    }

}
